package cn.platform.service.impl;

import cn.platform.mapper.HarmonyTeacherMapper;
import cn.platform.response.AResponse;
import cn.platform.response.LoginResponse;
import cn.platform.service.HarmonyService;
import cn.platform.util.identify.SessionToken;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

@Service
public class HarmonyServiceImpl implements HarmonyService {
    /**
     * 根据用户token查询用户id
     *
     * @return AResponse res 用户的信息
     * @author jyz
     */
    @Override
    public AResponse getRole() {
        AResponse res = new AResponse();
        res.setData(SessionToken.getUserAccount());
        return res;
    }
}
